home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 2 / AACD 2.iso / AACD / Magazine / GraphicsCards / StormMesa / demos / Makefile < prev    next >
Encoding:
Makefile  |  1998-12-15  |  2.0 KB  |  91 lines

  1. # $Id: Makefile,v 3.3 1998/06/10 02:52:20 brianp Exp $
  2.  
  3. # Mesa 3-D graphics library
  4. # Version:  3.0
  5. # Copyright (C) 1995-1998  Brian Paul
  6. #
  7. # This library is free software; you can redistribute it and/or
  8. # modify it under the terms of the GNU Library General Public
  9. # License as published by the Free Software Foundation; either
  10. # version 2 of the License, or (at your option) any later version.
  11. #
  12. # This library is distributed in the hope that it will be useful,
  13. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  15. # Library General Public License for more details.
  16. #
  17. # You should have received a copy of the GNU Library General Public
  18. # License along with this library; if not, write to the Free
  19. # Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  20.  
  21.  
  22. # Makefile for GLUT-based demo programs for Unix/X11
  23.  
  24.  
  25. # $Log: Makefile,v $
  26. # Revision 3.3  1998/06/10 02:52:20  brianp
  27. # added multiext example
  28. #
  29. # Revision 3.2  1998/04/21 23:58:41  brianp
  30. # added LIBDIR variable
  31. #
  32. # Revision 3.1  1998/02/21 01:31:56  brianp
  33. # added multitex and renormal demos
  34. #
  35. # Revision 3.0  1998/02/14 18:30:39  brianp
  36. # initial rev
  37. #
  38.  
  39.  
  40.  
  41. ##### MACROS #####
  42.  
  43. INCDIR = ../include
  44. LIBDIR = ../lib
  45.  
  46. GL_LIBS = -L$(LIBDIR) -lglut -lMesaGLU -lMesaGL -lm $(XLIBS)
  47.  
  48. LIB_DEP = $(LIBDIR)/$(GL_LIB) $(LIBDIR)/$(GLU_LIB) $(LIBDIR)/$(GLUT_LIB)
  49.  
  50. PROGS = bounce clearspd drawpix gamma gears glinfo glutfx isosurf \
  51.     morph3d multiext multitex osdemo paltex pointblast reflect \
  52.     renormal spectex stex3d tessdemo texcyl texobj trispd winpos
  53.  
  54.  
  55. ##### RULES #####
  56.  
  57. .SUFFIXES:
  58. .SUFFIXES: .c
  59.  
  60. .c: $(LIB_DEP)
  61.     $(CC) -I$(INCDIR) $(CFLAGS) $< $(GL_LIBS) -o $@
  62.  
  63.  
  64.  
  65. ##### TARGETS #####
  66.  
  67. default:
  68.     @echo "Specify a target configuration"
  69.  
  70. clean:
  71.     -rm *.o *~
  72.  
  73. realclean:
  74.     -rm $(PROGS)
  75.     -rm *.o *~
  76.  
  77. targets: $(PROGS)
  78.  
  79. # execute all programs
  80. exec: $(PROGS)
  81.     @for prog in $(PROGS) ;            \
  82.     do                    \
  83.         echo -n "Running $$prog ..." ;    \
  84.         $$prog ;            \
  85.         echo ;                \
  86.     done
  87.  
  88.  
  89. include ../Make-config
  90.  
  91.